package com.zx.template.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zx.template.enums.VipConfigEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员配置表
 * @TableName t_vip_config
 */
@Data
@TableName("t_vip_config")
public class VipConfigDO implements Serializable {
    /**
     * 主键Id
     */
    @TableId
    private Integer id;

    /**
     * 会员类型名称
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String typeName;

    /**
     * 原价
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal originalPrice;

    /**
     * 折扣金额
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal discountAmount;

    /**
     * 实付价格
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal realPrice;

    /**
     * 会员天数
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer days;

    /**
     * 置顶天数
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer topDays;

    /**
     * 状态 {@link VipConfigEnum}
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date updateTime;

    /**
     * 0-未删除，1-删除
     */
    private Integer deleted;

    private static final long serialVersionUID = 1L;
}